package org.wanda.pv.model.file;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.nutz.dao.DB;
import org.nutz.dao.entity.annotation.*;
import org.nutz.json.JsonField;
import org.wanda.pv.framework.base.BaseModel;

@Table("wd_fileupload_info")
public class FileUploadInfo extends BaseModel {

    @Id
    @Prev(els = {@EL("$me.idGen()")})
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Column("server_path")
    @ColDefine(type = ColType.VARCHAR, notNull = true,width = 500)
    @Comment("服务器路径")
    private String serverPath;


    @Column("ex_name")
    @ColDefine(type = ColType.VARCHAR, notNull = true,width = 100)
    @Comment("文件扩展名")
    private String exName;

    @Column("hy_file_id")
    private String hyFileId;

    @Column
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getServerPath() {
        return serverPath;
    }

    public void setServerPath(String serverPath) {
        this.serverPath = serverPath;
    }



    public String getExName() {
        return exName;
    }

    public void setExName(String exName) {
        this.exName = exName;
    }

    public String getHyFileId() {
        return hyFileId;
    }

    public void setHyFileId(String hyFileId) {
        this.hyFileId = hyFileId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
